// 组件的内部配置,不随JSON配置文件传递,仅存在于设计器及渲染器中,以减轻数据传输压力
/*
    name: '文字' 组件名称
    icon: 'text' 组件图标
    notFormItem: true 是否生成el-form-item true:不生成
    showDefaultValue: 是否显示默认值配置输入框
 */
export default {
  qrCode: {
    name: '条码',
    icon: 'qr-code-line',
    qrCodeRelatedFieldsFilters: [
      'input',
      'textarea',
      'number',
      'radio',
      'checkbox',
      'select',
      'date',
      'rate',
      'switches',
      'slider',
      'address',
      'organization',
      'member',
      'cascader',
      'editor',
      'uuid'
    ] // 二维码动态关联字段可选组件范围
  },
  personName: {
    name: '姓名',
    icon: 'user-line',
    showDefaultValue: true
  },
  personGender: {
    name: '性别',
    icon: 'men-line',
    showDefaultValue: true
  },
  idCard: {
    name: '身份证号码',
    icon: 'folder-user-line',
    showDefaultValue: true
  },
  unifiedSocialCreditCode: {
    name: '统一社会信用代码',
    icon: 'barcode-box-line',
    showDefaultValue: true
  },
  cellPhoneNumber: {
    name: '手机号码',
    icon: 'smartphone-line',
    showDefaultValue: true
  },
  telephoneNumber: {
    name: '固定电话',
    icon: 'phone-line',
    showDefaultValue: true
  },
  email: {
    name: '电子邮箱',
    icon: 'mail-line',
    showDefaultValue: true
  },
  zipCode: {
    name: '邮政编码',
    icon: 'mail-settings-line',
    showDefaultValue: true
  },
  administrativeDivision: {
    name: '行政区划',
    icon: 'government-line'
  },
  // Address: {
  //   name: '地址',
  //   icon: 'home-gear-line',
  //   showDefaultValue: false
  // },
  remark: {
    name: '备注',
    icon: 'sticky-note-line',
    showDefaultValue: true
  },
  funds: {
    name: '资金',
    icon: 'money-cny-box-line',
    showDefaultValue: true
  },
  carNumber: {
    name: '车牌号',
    icon: 'car-line',
    showDefaultValue: true
  },
  text: {
    name: '文字',
    icon: 'character-recognition-line',
    notFormItem: true
  },
  input: {
    name: '单行文本',
    icon: 'layout-left-2-line',
    showDefaultValue: true
  },
  textarea: {
    name: '多行文本',
    icon: 'file-list-line',
    showDefaultValue: true
  },
  number: {
    name: '数字',
    icon: 'increase-decrease-line',
    showDefaultValue: true
  },
  radio: {
    name: '单选框组',
    icon: 'radio-button-line'
  },
  checkbox: {
    name: '多选框组',
    icon: 'checkbox-line'
  },
  select: {
    name: '下拉选择框',
    icon: 'arrow-down-line'
  },
  time: {
    name: '时间选择器',
    icon: 'time-line',
    showDefaultValue: true
  },
  date: {
    name: '日期选择器',
    icon: 'calendar-line',
    showDefaultValue: true
  },
  rate: {
    name: '评分',
    icon: 'star-smile-line',
    showDefaultValue: true
  },
  switches: {
    name: '开关',
    icon: 'toggle-line',
    showDefaultValue: true
  },
  slider: {
    name: '滑块',
    icon: 'equalizer-line',
    showDefaultValue: true
  },
  button: {
    name: '按钮',
    icon: 'mouse-line',
    notFormItem: true
  },
  link: {
    name: '文字链接',
    icon: 't-box-line',
    notFormItem: true
  },
  editor: {
    name: '富文本',
    icon: 'edit-circle-line',
    showDefaultValue: true
  },
  cascader: {
    name: '级联选择器',
    icon: 'link'
  },
  divider: {
    name: '分割线',
    icon: 'separator',
    notFormItem: true
  },
  grid: {
    name: '栅格布局',
    icon: 'layout-column-line',
    notFormItem: true,
    isContainer: true,
    allowList: []
  },
  table: {
    name: '子表单',
    icon: 'terminal-window-line',
    notFormItem: true,
    isContainer: true,
    allowList: [
      'text',
      'input',
      'textarea',
      'number',
      'radio',
      'checkbox',
      'select',
      'date',
      'rate',
      'switches',
      'slider',
      'upload',
      'imageUpload',
      'address',
      'organization',
      'member',
      'uuid',
      'cascader'
    ]
  },
  tabs: {
    name: '标签页',
    icon: 'window-2-line',
    notFormItem: true,
    isContainer: true,
    allowList: ['grid', 'table']
  },
  report: {
    name: '网格布局',
    icon: 'table-line',
    notFormItem: true,
    isContainer: true,
    allowList: []
  },
  td: {
    name: 'TD',
    icon: 'table-line',
    notFormItem: true
  },
  card: {
    name: '卡片',
    icon: 'input-method-line',
    notFormItem: true,
    isContainer: true,
    allowList: ['grid', 'table']
  },
  collapse: {
    name: '折叠面板',
    icon: 'stack-line',
    notFormItem: true,
    isContainer: true,
    allowList: ['grid', 'table']
  },
  upload: {
    name: '上传附件',
    icon: 'file-upload-line',
    showDefaultValue: false
  },
  imageUpload: {
    name: '上传图片',
    icon: 'image-add-fill',
    showDefaultValue: false
  },
  organization: {
    name: '组织机构',
    icon: 'organization-chart',
    showDefaultValue: false,
    shareFormNotApplicableTip: true
  },
  member: {
    name: '人员选择',
    icon: 'user-2-line',
    showDefaultValue: false,
    shareFormNotApplicableTip: true
  },
  uuid: {
    name: '唯一标识码',
    icon: 'repeat-one-line',
    showDefaultValue: false
  },
  sequence: {
    name: '流水号',
    icon: 'barcode-box-line',
    showDefaultValue: false
  },
  address: {
    name: '地址',
    icon: 'map-pin-line',
    showDefaultValue: false
  },
  relatedForm: {
    name: '关联表单',
    icon: 'links-line',
    showDefaultValue: false,
    shareFormNotApplicableTip: true
  },
  iframe: {
    name: '嵌入网页',
    icon: 'window-fill',
    showDefaultValue: false,
    notFormItem: true
  },
  image: {
    name: '嵌入图片',
    icon: 'image-line',
    showDefaultValue: false,
    notFormItem: true
  }
};
